package com.zelix;

public final class dn
    implements Comparable
{

    private String a;
    private String b;
    private String c;
    private int d;

    public dn(String s, String s1, String s2, int i)
    {
        a = s;
        b = s1;
        c = s2;
        d = i;
    }

    public int compareTo(Object obj)
    {
        if(obj instanceof dn)
        {
            dn dn1 = (dn)obj;
            int i = b.compareTo(dn1.a());
            if(i == 0)
                return a.compareTo(dn1.b());
            else
                return i;
        } else
        {
            return -1;
        }
    }

    public boolean equals(Object obj)
    {
        if(obj instanceof dn)
        {
            dn dn1 = (dn)obj;
            return a.equals(dn1.a) && b.equals(dn1.b);
        } else
        {
            return false;
        }
    }

    public String a()
    {
        return b;
    }

    public String b()
    {
        return a;
    }

    public String c()
    {
        return c;
    }

    public int hashCode()
    {
        return b.hashCode() ^ a.hashCode();
    }

    public boolean d()
    {
        return c.equals("Z");
    }
}